package essential.ch4;

/**
 * @Date 2021/10/24
 * @Created by Jonathan
 */
public class SuperStaticOverride {
    public static void m() {
        System.out.println("m() in SuperStaticOverride");
    }


}

class StaticOverride extends SuperStaticOverride {
    /**
     * 子类的m方法并没有重写父类的m方法。也说明不能重写静态方法。
     */
    //@Override
    public static void m() {
        System.out.println("m() in StaticOverride");
    }

    public static void main(String[] args) {
        SuperStaticOverride.m();
        StaticOverride.m();
    }
}
